package com.jprocms.module.cms.controller.admin.content.vo;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 内容计数 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class ContentCountBaseVO {

    @Schema(description = "浏览量", required = true)
    @NotNull(message = "浏览量不能为空")
    private Integer views;

    @Schema(description = "评论量", required = true)
    @NotNull(message = "评论量不能为空")
    private Integer comments;

    @Schema(description = "点赞数", required = true)
    @NotNull(message = "点赞数不能为空")
    private Integer ups;

    @Schema(description = "点踩数", required = true)
    @NotNull(message = "点踩数不能为空")
    private Integer downs;

    @Schema(description = "下载量", required = true)
    @NotNull(message = "下载量不能为空")
    private Integer downloads;

    @Schema(description = "收藏量", required = true)
    @NotNull(message = "收藏量不能为空")
    private Integer favorites;

}
